package com.baizhi.staticx;

public class StaticCodeDemo {
    public static void main(String[] args) {
        new A();
        new A();
    }
}


class A{

    //静态代码块
    static{
        System.out.println("A static");
    }

    //构造方法
    public A(){
        System.out.println("A");
    }
}